package com.example.jdt_xiazai.presenter;

import com.example.jdt_xiazai.base.BasePresenter;
import com.example.jdt_xiazai.bean.FuLiBean;
import com.example.jdt_xiazai.model.MainModel;
import com.example.jdt_xiazai.net.ResultCallBack;
import com.example.jdt_xiazai.view.MainView;

import java.util.List;

public class MainPresenter extends BasePresenter<MainView> {
    private MainModel mainModel;
    @Override
    protected void initModel() {
        mainModel=new MainModel();
        addModel(mainModel);
    }

    public void getData(){
        mainModel.getData(new ResultCallBack() {
            @Override
            public void onScanner(List<FuLiBean.DataBean.DatasBean> dataBeans) {
                view.showData(dataBeans);
            }
        });
    }
}
